package com.ruoyi.answer.mapper;

import java.util.List;
import com.ruoyi.answer.domain.QtAnswer;

/**
 * 答疑Mapper接口
 * 
 * @author zqq
 * @date 2021-11-19
 */
public interface QtAnswerMapper 
{
    /**
     * 查询答疑
     * 
     * @param answerId 答疑主键
     * @return 答疑
     */
    public QtAnswer selectQtAnswerByAnswerId(String answerId);

    /**
     * 查询答疑列表
     * 
     * @param qtAnswer 答疑
     * @return 答疑集合
     */
    public List<QtAnswer> selectQtAnswerList(QtAnswer qtAnswer);

    /**
     * 新增答疑
     * 
     * @param qtAnswer 答疑
     * @return 结果
     */
    public int insertQtAnswer(QtAnswer qtAnswer);

    /**
     * 修改答疑
     * 
     * @param qtAnswer 答疑
     * @return 结果
     */
    public int updateQtAnswer(QtAnswer qtAnswer);

    /**
     * 删除答疑
     * 
     * @param answerId 答疑主键
     * @return 结果
     */
    public int deleteQtAnswerByAnswerId(String answerId);

    /**
     * 批量删除答疑
     * 
     * @param answerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQtAnswerByAnswerIds(String[] answerIds);
}
